#ifndef PREFERENCES_H
#define PREFERENCES_H
#include <QDesktopWidget>
#include <QDialog>
#include "Settings.h"

namespace Ui {
    class Preferences;
}

class Preferences : public QDialog
{
    Q_OBJECT

public:
    explicit Preferences(QWidget *parent = 0);
    ~Preferences();
signals:
    void CreateDatabase(QString);
    void DeleteDatabase(QString);

private slots:
    void on_AddAccountButton_clicked();

    void on_DelAccountButton_clicked();

    void on_AccountsList_cellChanged(int row, int column);

    void on_EditAccountButton_clicked();

    void MakeAccountsList();

private:
    Ui::Preferences *ui;

    Settings set;
};

#endif // PREFERENCES_H
